EPP_KERNEL_TARGET=eppsec
MODULE_NAME:=$(EPP_KERNEL_TARGET)
MODULE_SUF=.ko
OUTPUT=$(PWD)/../debug/

ifneq ($(KERNELRELEASE),)
EXTRA_CFLAGS = -D__64bit__ 
eppsec-objs:=epp_module.o lsm_hook.o ak_probe.o epp_lsm.o lsm_public.o ak_common.o
obj-m +=eppsec.o
else
PWD := $(shell pwd)
CURRENT	:= $(shell uname -r)
KDIR := /lib/modules/$(CURRENT)/build

all:
	$(MAKE) -C $(KDIR) M=$(PWD)
	cp $(PWD)/$(MODULE_NAME)$(MODULE_SUF) $(OUTPUT) -rf
clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
	rm *.markers -rf
	rm *.symvers -rf
endif
